package za.ac.cput.peterjohn.DesignPatternPrincipals.Structural.Bridge.Factory;

import za.ac.cput.peterjohn.DesignPatternPrincipals.Structural.Bridge.Model.SmallEngine;
import za.ac.cput.peterjohn.DesignPatternPrincipals.Structural.Bridge.Model.Vechile;

public class SmallCar extends Vechile {

    public SmallCar(SmallEngine smallEngine) 
    {
        this.weightInKilos = 600;
        this.engine = smallEngine;
    }

    @Override
    public void drive() 
    {
        int horsepower = engine.go();
        reportOnSpeed();
    }
}